function MainAssistant(argFromPusher) {}

MainAssistant.prototype = {
	setup: function () {
		Ares.setupSceneAssistant(this);
		this.db = this.controller.stageController.assistant.db;
		this.db.get('index', this.indexFetched.bind(this));
		this.db.set('index');
	},
	cleanup: function () {
		Ares.cleanupSceneAssistant(this);
	},
	activate: function () {
	},
	indexFetched: function (obj) {
		Mojo.Log.info("indexFetched", obj ? JSON.stringify(obj) : 'null');
		if (0 && obj) {
			this.model = obj;
		} else {
			this.model = {items:[{label:'hello!'}, {label:'world.'}]};
			this.db.add('index', this.model);
		}
		this.controller.setWidgetModel('requests', this.model);
	},
	requestsListTap: function (inSender, event) {
		this.controller.stageController.pushScene('request', event.item);
	},
	requestsListAdd: function (inSender, event) {
		this.controller.stageController.pushScene('request', null);
	}
};